dans cet exemple , toutes les définitions de cellule de tableau sont mise en variable:
", $IntairData['data'][$currentKey]['T6_AirClim_Tx'][0]); };
echo $img_td5;}
if ($IntairData['data'][$currentKey]['T6_Cable_aff'][0] != "") {
if ($compteur++%2 == 0) {
echo $img_td1;
} else {
echo $img_td1_a;
}
echo $IntairData['data'][$currentKey]['g_Cable'][0];
echo $img_td2;
echo $IntairData['data'][$currentKey]['T6_Cable_aff'][0];
if (empty($IntairData['data'][$currentKey]['T6_Cable_Tx'][0]))
{ echo ""; }
else
{ echo $espace;
echo str_replace("\n", "
", $IntairData['data'][$currentKey]['T6_Cable_Tx'][0]); };
echo $img_td5;}
if ($IntairData['data'][$currentKey]['T6_Cafe_aff'][0] != "") {
if ($compteur++%2 == 0) {
echo $img_td1;
} else {
echo $img_td1_a;
}
echo $IntairData['data'][$currentKey]['g_Cafe'][0];
echo $img_td2;
echo $IntairData['data'][$currentKey]['T6_Cafe_aff'][0];
if (empty($IntairData['data'][$currentKey]['T6_Cafe_Tx'][0]))
{ echo ""; }
else
{ echo $espace;
echo str_replace("\n", "
", $IntairData['data'][$currentKey]['T6_Cafe_Tx'][0]); };
echo $img_td5;}
if ($IntairData['data'][$currentKey]['T6_SechCh_aff'][0] != "") {
if ($compteur++%2 == 0) {
echo $img_td1;
} else {
echo $img_td1_a;
}
echo $IntairData['data'][$currentKey]['g_SechCh'][0];
echo $img_td2;
echo $IntairData['data'][$currentKey]['T6_SechCh_aff'][0];
if (empty($IntairData['data'][$currentKey]['T6_SechCh_Tx'][0]))
{ echo ""; }
else
{ echo $espace;
echo str_replace("\n", "
", $IntairData['data'][$currentKey]['T6_SechCh_Tx'][0]); };
echo $img_td5;}
?>